This key defines the text displayed for a standard add option in the + Add button dropdown.
The value is a string that specifies the label text for the menu item.
By default, this key uses the name of the matching Schema if add_options.schema is configured. Otherwise, this key has no default value.
Appears in
└── collections_config
└── *
└── add_options
└── [*]
└── Add Option
└── nameType
string
Examples
In this example, we have configured a standard add option for the people Collection with the custom name "Add Staff Member".
Copied to clipboard
collections_config:
people:
add_options:
- name: Add Staff Member
schema: employee
icon: face
editor: data
schemas:
employee:
path: /.cloudcannon/schemas/employee.yml{
"collections_config": {
"people": {
"add_options": [
{
"name": "Add Staff Member",
"schema": "employee",
"icon": "face",
"editor": "data"
}
],
"schemas": {
"employee": {
"path": "/.cloudcannon/schemas/employee.yml"
}
}
}
}
}